<template>
    <div class="Box">
        <img :src="props.game_icon"/>
        <div class="infoBox">
            <p>
                <span>{{ props.game_name }}</span>
                <span>{{ props.game_tage }}</span>
            </p>
            <p>
                <span>星级</span>
                <span>{{ props.grade }}分</span>
            </p>
            <p>
                <span>{{ props.notice_title }}</span>
                <span>{{ props.notice }}</span>
            </p>
        </div>
        <el-button type="primary">下载</el-button>
    </div> 
</template>

<script lang="ts" setup>
interface Props{
    game_base_id:number //id
    game_icon:string    //图片
    game_name:string    
    game_tage:string    //标签
    grade:number        //评分
    notice:string       //简介
    notice_title:string
}
const props = defineProps<Props>()
</script>

<style lang="scss" scoped>
@media  screen and (min-width: 0) and (max-width: 1600px){
    .Box{
        height: 75px;
    }
}
@media  screen and (min-width: 1600px) and (max-width: 2000px){
    .Box{
        height: 90px;
    }
}
p{
    padding: 0;
    margin: 0;
}
.Box{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    & img:nth-child(1){
        width: 26%;
        height: 100%;
        border-radius: 4px;
    }
}
.infoBox{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 5px;
    width: 50%;
    height: 100%;
    text-align: left;
    & p{
        width: 100%;
        display: flex;
        justify-content: start;
        align-items: center;
        gap:5px;
        font-size: 13px;
        color: #9499A0;
    }
    & p:nth-child(1) span:nth-child(1){
        width: 100%;
        font-size: 15px;
        color: #18191C;
        line-height: 15px;
        max-height: 30px;
        @include tweLineShow;
        cursor: pointer;
    }
    & p:nth-child(1) span:nth-child(2){
        margin-top: 5px;
        width: 100%;
        display: flex;
        justify-content: start;
        align-items: center;
        font-size: 13px;
        color: #9499A0;
        cursor: pointer;
    }

    & p:nth-child(2) span:nth-child(2){
        color: #E58900;
    }
    & p:nth-child(3) span:nth-child(1){
        background: #FFF6E4;
        color: #E58900;
        padding: 0 8px;
        white-space: nowrap;
    }
    & p:nth-child(3) span:nth-child(2){
        display: block;
        @include noWrap;
    }
}
</style>